package Shopfashion;


public class SanPham {

	private String model;
	private String mausac;
	private String size;
	private String chatlieu;
	private Double dongia;
	private Double vongnguc;
	private Double vongeo;
	private Double vongmong;
	private String hinhanh;
	private String ngaynhap;
	private String mota;

	public SanPham(String model, String mausac, String size, String chatlieu, Double dongia,
			Double vongnguc, Double vongeo, Double vongmong, 
			String hinhanh, String ngaynhap, String mota) {
		this.model=model;
		this.mausac=mausac;
		this.size=size;
		this.chatlieu=chatlieu;
		this.dongia= dongia;
		this.vongeo=vongeo;
		this.vongmong=vongmong;
		this.vongnguc=vongnguc;
		this.hinhanh=hinhanh;
		this.ngaynhap=ngaynhap;
		this.mota=mota;
	}


	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getMausac() {
		return mausac;
	}

	public void setMausac(String mausac) {
		this.mausac = mausac;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}
	public String getChatlieu() {
		return chatlieu;
	}

	public void setChatlieu(String chatlieu) {
		this.chatlieu = chatlieu;
	}
	
	public double getDongia() {
		return dongia;
	}

	public void setDongia(double dongia) {
		this.dongia = dongia;
	}

	public Double getVongnguc() {
		return vongnguc;
	}

	public void setVongnguc(Double vongnguc) {
		this.vongnguc = vongnguc;
	}
	public Double getVongeo() {
		return vongeo;
	}

	public void setVongeo(Double vongeo) {
		this.vongeo = vongeo;
	}

	public Double getVongmong() {
		return vongmong;
	}

	public void setVongmong(Double vongmmong) {
		this.vongmong = vongmong;
	}

	public String getHinhanh() {
		return hinhanh;
	}

	public void setHinanh(String hinhanh) {
		this.hinhanh = hinhanh;
	}


	public void setNgaynhap(String ngaynhap) {
		this.ngaynhap = ngaynhap;
	}
	public String getNgaynhap() {
		return ngaynhap;
	}

	public void setMota(String mota) {
		this.mota = mota;
	}
	
	public String getMota() {
		return mota;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((model == null) ? 0 : model.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SanPham other = (SanPham) obj;
		if (model == null) {
			if (other.model != null)
				return false;
		} else if (!model.equals(other.model))
			return false;
		return true;
	}
}
